package com.d3works.apps.base.service;

import com.d3works.apps.base.db.BarcodeTypeConfig;
import com.d3works.exception.D3worksException;
import com.d3works.meta.db.MetaFile;
import java.io.InputStream;

public interface BarcodeGeneratorService {

  MetaFile createBarCode(
      Long originId,
      String fileNameFormat,
      String serialno,
      BarcodeTypeConfig barcodeTypeConfig,
      boolean isPadding);

  InputStream createBarCode(String serialno, BarcodeTypeConfig barcodeTypeConfig, boolean isPadding)
      throws D3worksException;

  boolean checkSerialNumberConsistency(
      String serialno, BarcodeTypeConfig barcodeTypeConfig, boolean isPadding)
      throws D3worksException;
}
